# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=poke
pkgver=2.3
pkgrel=0
pkgdesc="extensible editor for binary data"
url=http://www.jemarch.net/poke.html
arch="all"
license="GPL-3-or-later"
makedepends="automake autoconf help2man gc-dev readline-dev gettext-dev json-c-dev dejagnu-dev"
checkdepends="dejagnu"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/poke/poke-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -k check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
101ef0009676c02f72ffb4889a02c9a161f29f412685249c7166f69077b0cd1b19d940567ebb86894bacf2278a2e138354fd49456f12b05a4c1957f437ff1d86  poke-2.3.tar.gz
"
